var FeedLinearizer;

FeedLinearizer = function () {
    this.linearize = function (feed) {
        var i, linear;
        feed = JSON.parse(JSON.stringify(feed));
        linear = [];
        for (i in feed) {
            if (feed.hasOwnProperty(i)) {
                linear = linear.concat(feed[i]);
            }
        }
        linear.sort(function (vid1, vid2) {
            return vid1.uploaded > vid2.uploaded ? 1 : -1;
        });
        return linear;
    };
};
